package com.liholin.springboot.sample.config;

//@ConditionalOnClass({SqlSessionFactory.class})
//@Configuration //定义此类为配置类
//public class InterceptorConfig {

//    public InterceptorConfig() {
//    }
//
//    @Bean
//    @ConditionalOnProperty(name = {"log.printQueryAndUpdatesql"},havingValue = "true",matchIfMissing = true)
//    public DataPermissionInterceptor getDataPermission() {
//        return new DataPermissionInterceptor();
//    }
//}

